package com.lin.missyou.service;

import com.lin.missyou.model.User;
import com.lin.missyou.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author gcq
 * @Create 2021-11-05
 */
@Service
public class UserService {

    @Autowired
    private UserRepository userRepository;

    public User getUserById(Long id)
    {
        return userRepository.getUserById(id);
    }
}